package com.lxy.cxcyxmmsbackend.sys.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author lxy
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Repository
@ApiModel("分页结果类 PageRes")
public class PageRes {
    @ApiModelProperty("当前页")
    private Integer currentPage;

    @ApiModelProperty("页面大小")
    private Integer pageSize;

    @ApiModelProperty("查询条件")
    private Map<String, Object> keyWord;

    @ApiModelProperty("查询出的记录数量")
    private int size;

    @ApiModelProperty("总页数")
    private int totalSize;

    @ApiModelProperty("数据")
    private Object objects;
}
